package com.heima.article.api;

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author mgw
 * @create 2021/9/27 20:31
 */
@FeignClient(value ="leadnews-dfs",path = "/dfs")
public interface DfsControllerFeign {
    @PostMapping("/html/upload")
    ResponseResult uploadHtml(@RequestParam String content);

    @PostMapping("/upload")
     ResponseResult upload(MultipartFile file);

    @PostMapping(value = "/list/download")
    public List<byte[]> download(@RequestParam List<String> images);
}
